package cn.bdqn.service.impl;

import cn.bdqn.bean.User;
import cn.bdqn.dao.UserDao;
import cn.bdqn.dao.impl.UserDaoImpl;
import cn.bdqn.service.UserService;

public class UserServiceImpl implements UserService {
    private UserDao userDao=new UserDaoImpl();
    @Override
    public User login(String uname, String pwd) {
        return userDao.login(uname,pwd);
    }

    @Override
    public int register(User user) {
        return userDao.register(user);
    }
}
